//
//  NSString+CAIWhithoutEscaping.m
//  CAICategories
//
//  Created by simon on 2022/3/24.
//

#import "NSString+CAIWhithoutEscaping.h"

@implementation NSString (CAIWhithoutEscaping)

///过滤转义字符
+ (NSString *)zx_whitoutEscapingCharacterWithJsonString:(NSString *)str
{
    NSMutableString *responseString = [NSMutableString stringWithString:str];
    NSString *character = nil;
    for (int i = 0; i < responseString.length; i ++)
    {
        character = [responseString substringWithRange:NSMakeRange(i, 1)];
        //转译符"\"
        if ([character isEqualToString:@"\\"])
        {
            [responseString deleteCharactersInRange:NSMakeRange(i, 1)];
        }
    }
    return responseString;
}

@end
